// 处方项目
export interface Prescription {
  drugName: string;
  dosage: string;
  usage: string;
  days: number;
}

// 病历记录（电子病历）
export interface EMRRecord {
  id: string;
  patientId: string;
  patientName: string;
  doctorId: string;
  doctorName: string;
  createdAt: string;
  updatedAt: string;
  chiefComplaint: string; // 主诉
  history: string; // 现病史
  physicalExam: string; // 体格检查
  diagnosis: string; // 诊断
  prescription: Prescription[];
  attachments?: string[]; // 图片或检查报告
}

// 病历模板（支持快速填写）
export interface EMRTemplate {
  id: string;
  name: string;
  fields: Partial<Pick<EMRRecord, 'chiefComplaint' | 'history' | 'physicalExam' | 'diagnosis' | 'prescription'>>;
}
